package com.onesports.intelligent.k12.polarlight.domain.entity.market;

import com.baomidou.mybatisplus.annotation.TableName;

import com.onesports.intelligent.k12.polarlight.common.domain.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 课程订单
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("orders")
@AllArgsConstructor
@NoArgsConstructor
public class Orders extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

    /**
     * 机构ID
     */
	private String organizationId;
    /**
     * 校区ID
     */
	private String campusId;
    /**
     * 订单号
     */
	private String orderNo;
    /**
     * 商品ID
     */
	private String productId;
    /**
     * 关联课程ID
     */
	private String courseId;
    /**
     * 订单金额
     */
	private BigDecimal orderAmount;
    /**
     * 优惠金额
     */
	private BigDecimal discountAmount;
    /**
     * 实付金额
     */
	private BigDecimal actuallyAmount;
    /**
     * 订单状态 1-待付款;2-已付款;3-退款中;4-已退款;5-已取消
     */
	private String orderStatus;
    /**
     * 支付时间

     */
	private Date payTime;
    /**
     * 下单时间
     */
	private Date orderTime;
    /**
     * 备注
     */
	private String remarks;
    /**
     * 支付人ID
     */
	private String payer;
    /**
     * 支付类型(1:微信支付，2：线下支付，3：余额)
     */
	private String payType;
    /**
     * 课表详情ID
     */
	private String scheduleDetailId;
    /**
     * 团长id
     */
	private String headId;
    /**
     * 教练id
     */
	private String coachId;
    /**
     * 是否已结算
     */
	private Boolean settlemented;
    /**
     * 学员ID
     */
	private String studentId;
    /**
     * 班级ID
     */
	private String classId;

	/**
	 * 是否首次拼班订单
	 */
	private Boolean firstSpell;

	/**
	 * 是否已分佣
	 */
	private Boolean commission;
}
